package com.newasia.management.converter;


import com.newasia.management.dal.item.entitys.ItemCat;
import com.newasia.management.dto.productCategory.ChangeItemCatRequest;
import com.newasia.management.dto.productCategory.CreateItemCatRequest;
import com.newasia.management.dto.productCategory.ItemCatDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ItemCatConverter {

    @Mappings({})
    ItemCat req2cat(CreateItemCatRequest request);

    @Mappings({})
    ItemCat changereq2cat(ChangeItemCatRequest request);

    List<ItemCatDto> item2dto(List<ItemCat> items);

}
